const state = {
    cartList:[]
}

const getters = {
    
}
const actions = {
    addProductToCart({commit},product){
        commit('addProductToCart',product)
    }
}

const mutations = {
    addProductToCart(state,product) {
        state.cartList.push(product)
    }
}

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}